package org.john.auth.client.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class User implements Serializable {

	private static final long serialVersionUID = -6500982096900767383L;

	/** 登陆名 */
	private String username;
	/** 密码 */
	private String password;
	/** 账号状态 */
	private boolean active;
	/** Email */
	private String email;
	/** 移动电话 */
	private String mobile;
	/** 地址 */
	private String address;
	/** 邮政编码 */
	private String postalCode;
	/** 详细信息 */
	private String detailInformation;
	/** 有效期限 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
	private Date expiredDate;
	/** 登录类型：1. 静态密码登录 2. 动态密码登录 */
	private short loginType;
	/** 登录授权用户ID */
	private long loginAuthorizatedBy;
}